import request from '@/utils/request'

export default {
    //获取轮播图分页列表
    getActivityListPage(page, limit) {
        return request({
            url: `/activity/selectAll/${page}/${limit}`,
            method: 'post'
        })
    },
    getActivityListByAnyPage(activityShowQuery) {
        return request({
            url: `/activity/selectByAny`,
            method: 'post',
            data: activityShowQuery
        })
    },
    saveAddActivity(addData) {
        return request({
            url: `/activity/addOne`,
            method: 'post',
            data: addData
        })
    },
    //移除轮播图到回收站或者删除
    removeShowListPage(checkList) {
        return request({
            url: `/activity/deleteAny`,
            method: 'post',
            data: checkList
        })
    },
    getActivityRecycleListPage(page, limit) {
        return request({
            url: `/activity/selectAllRecycleBin/${page}/${limit}`,
            method: 'post'
        })
    },

    deleteCompletelyOrRecyclePage(delData) {
        return request({
            url: `/activity/deleteOne`,
            method: 'post',
            data: delData
        })
    },

    updateActivityShow(addData) {
        return request({
            url: `/activity/updateOne`,
            method: 'post',
            data: addData
        })
    },

    getCurrentActivity(id) {
        return request({
            url: `/activity/selectOneById`,
            method: 'post',
            data: { "id": id }
        })
    },
    // //添加轮播图
    // addSlideShow(slideShow) {
    //     return request({
    //         url: `/slideShow/addSlideShow`,
    //         method: 'post',
    //         data: slideShow
    //     })
    // },
    // //根据id查询轮播图
    // getSlideShow(id) {
    //     return request({
    //         url: `/slideShow/selectOne/${id}`,
    //         method: 'get'
    //     })
    // },
    // //修改轮播图
    // updateSlideShow(slideShow) {
    //     return request({
    //         url: `/oss/fileUpload/${slideShow.id}`,
    //         method: 'post',
    //         data: slideShow
    //     })
    // }
}